/**
 *
 *
 */
package com.fw.timesheet.service;

import java.util.List;

import com.fw.timesheet.dao.TimesheetDAO;
import com.fw.timesheet.model.Timesheet;
import com.fw.timesheet.model.TimesheetActivity;

/**
 * @author sigit <br>
 * @version 1.0 <br>
 * Application : timesheet <br>
 * Copyright (c) fastwire-group 2012 <br>
 * <br>
 */
public class TimesheetService extends BaseService {
	private TimesheetDAO timesheetDAO;

	public TimesheetDAO getTimesheetDAO() {
		return timesheetDAO;
	}

	public void setTimesheetDAO(TimesheetDAO timesheetDAO) {
		this.timesheetDAO = timesheetDAO;
		setDaoObject(timesheetDAO);
	}
	
	public void delete(Timesheet persistentInstance) {
		getTimesheetDAO().delete(persistentInstance);
	}
	
	public Timesheet findById(Long id) {
		return getTimesheetDAO().findById(id);
	}
	
	public List<Timesheet> findAll() {
		return getTimesheetDAO().findAll();
	}
}
